import axiosInstance from "./index"

export function TrackCratedPost(trackModel: any) {
  return axiosInstance.post('/track/crate', trackModel)
}

export function TrackUpdatePost(trackModel: any) {
  return axiosInstance.post('/track/edit', trackModel)
}



export function TrackListGet(trackModel: any) {
  return axiosInstance.get('/track/list', {
    params: trackModel
  })
}


export function TrackDelete(id: any) {
  return axiosInstance.delete<any, any>(`/track/delete/${id}`)
}

export function TrackDetailGet(id: any) {
  return axiosInstance.get<any, any>(`/track/detail/${id}`)
}